export interface IConfig {
  port: number;
}

/** 服务启动端口号 */
export const config: IConfig = {
  port: parseInt(process.env.NODE_PORT, 10) || 3002,
};

/** mongodb 数据库配置 */
export const MONGODB = {
  host: '43.139.127.241:27017',
  database: 'vivo',
  user: 'vivo',
  password: 'HJcJmKLpS44ateDz',
}

/** 用户登录生成JWT的秘钥 */
export const JWT_SECRET_KEY = 'wubingkui.vivo';


/**
 * 百度智能云key
 */
export const BAIDU_KEY = {
  /** 语音识别 */
  SOUND: {
    ID: `nkg6D9g3XwXg4vwSmqxf99XO`,
    SECRET: `3Pn8IczFqovicTJvjLqrgYjgnCbmArLi`
  },
  /** 文字识别 */
  TEXT: {
    ID: "zBpTxhWBoZ8iTKpaX8nYFzDW",
    SECRET: "u6L70p6scYwIrf1c1UiZNnfWRtkDf5fX"
  }
}